/* ========================================================================= */
/* ------------------------------------------------------------------------- */
/*!
  \file			uvartree.cc
  \date			Dec 2011
  \author		TNick

  \brief		Contains the implementation for UVarTree class


*//*


 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Please read COPYING and README files in root folder
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
//
//
//
//
/*  INCLUDES    ------------------------------------------------------------ */

#include	<QSettings>

#include	<pgscript.h>
#include	<pgscript_internal.h>

#include	<pgsave/ipgsave.h>

#include	"uvartree.h"

/*  INCLUDES    ============================================================ */
//
//
//
//
/*  DEFINITIONS    --------------------------------------------------------- */

using namespace PgScr;
using namespace PgSave;

/*  DEFINITIONS    ========================================================= */
//
//
//
//
/*  DATA    ---------------------------------------------------------------- */

/*  DATA    ================================================================ */
//
//
//
//
/*  CLASS    --------------------------------------------------------------- */

/* ------------------------------------------------------------------------- */
UVarTree::UVarTree		( void )
	: DefVar()
{
	/* stub */
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
UVarTree::~UVarTree		( void )
{
	/* stub */
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
QString				UVarTree::presentation	( VarStore * uv )
{

	/* we should have been provided with an variable */
	Q_ASSERT ( uv != NULL );

	/* and that the type should have been a proper one */
	Q_ASSERT( uv->basicType() == VTY_FLAG_TREE );

	 /** @todo implement tree presentation */
	 return QString();
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
void				UVarTree::setDefault		( VarStore * uv )
{
	Q_ASSERT( uv->basicType() == VTY_FLAG_TREE );
	/** @todo implement tree default */
	uv->s.cnt = 0;
	uv->s.p_str = NULL;
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
QString				UVarTree::typeName			( VarStore * uv )
{
	Q_UNUSED( uv );
	return "tree";
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
bool				UVarTree::canSave		( VarStore * uv )
{
	return false;
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
bool				UVarTree::load			( PgSave::IPgSave & stg, VarStore * uv )
{
	return false;
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
bool				UVarTree::save			( PgSave::IPgSave & stg, VarStore * uv )
{
	return false;
}
/* ========================================================================= */

/* ------------------------------------------------------------------------- */
bool				UVarTree::blindCreate	 (
		IPgSave * intf, QString s_path, void * kb_data )
{
	BlindData * bd = (BlindData*)kb_data;
	Q_ASSERT( bd != NULL );

	/** @todo implement blindCreate for trees */
	return true;
}
/* ========================================================================= */


#ifdef	PGSCRIPT_TESTS
/* ------------------------------------------------------------------------- */
void				PgScr::VarTree_Tests					(
		int & performed, int & succeded )
{
	//QString Outcm;
	performed = 0;
	succeded = 0;


}
/* ========================================================================= */
#endif

/*  CLASS    =============================================================== */
//
//
//
//
/* ------------------------------------------------------------------------- */
/* ========================================================================= */
